package com.rightsidetech.system.service;

import com.github.pagehelper.PageInfo;
import com.rightsidetech.commom.base.DelReq;
import com.rightsidetech.commom.base.ResponseData;
import com.rightsidetech.system.dtos.request.news.AgentAppPageReq;
import com.rightsidetech.system.dtos.request.news.NewsPageReq;
import com.rightsidetech.system.dtos.request.news.NewsSaveReq;
import com.rightsidetech.system.dtos.request.news.NewsUpdateReq;
import com.rightsidetech.system.dtos.response.news.AgentAppPageResp;
import com.rightsidetech.system.dtos.response.news.NewsDetailResp;
import com.rightsidetech.system.dtos.response.news.NewsPageResp;

public interface SysNewsService {

    ResponseData saveNews(NewsSaveReq req,String createrName,Long createrId) throws Exception;

    ResponseData<PageInfo<NewsPageResp>> page(NewsPageReq req);

    ResponseData<NewsDetailResp> detail(Long id);

    ResponseData update(NewsUpdateReq req,String updaterName,Long updaterId) throws Exception;

    ResponseData del(DelReq req, Long id, String name);

    ResponseData offNews(DelReq req);

    ResponseData<PageInfo<AgentAppPageResp>> appPage(AgentAppPageReq req,Byte platform);
}
